home *** CD-ROM | disk | FTP | other *** search
/ Serving Financial Service…olutions Suite 1994 Fall / Serving Financial Services Solutions Suite 1994 Fall.iso / GS_Apps / eXTRAPRINT / eXTRAPRINT_Server.pkg / eXTRAPRINT_Server.pre_install < prev    next >
Text File  |  1994-03-01  |  665b  |  23 lines

  1. #!/bin/sh
  2. if whoami | grep -s root
  3. then
  4.     echo "OK, you are root"
  5.     mkdirs /usr/local/lib/ColorXPrinter
  6.     mkdirs /LocalLibrary/PrinterTypes/CustomPrinters
  7.     chmod a+w /LocalLibrary/PrinterTypes/CustomPrinters
  8.     if test -r /usr/local/lib/ColorXPrinter/cxserver
  9.     then
  10.         echo "Making backup copy of cxserver, as cxserver.old"
  11.         cp /usr/local/lib/ColorXPrinter/cxserver /usr/local/lib/ColorXPrinter/cxserver.old
  12.     fi
  13.     if test -f /usr/local/lib/ColorXPrinter/opi_path
  14.     then
  15.         echo "Making backup copy of opi_path, will be reinstated"
  16.         cp /usr/local/lib/ColorXPrinter/opi_path /usr/local/lib/ColorXPrinter/opi_path.bak
  17.     fi
  18.     exit 0
  19. else
  20.     echo "Must be run as root"
  21.     exit 20
  22. fi
  23.